fromPointAndDirection

fun fromPointAndDirection(point: Vec2, direction: Vec2, precision: DoubleEquivalence = DEFAULT_DOUBLE_EQUIVALENCE): Line2(source)

Creates a line from a point and a direction vector.

Return

A new Line2 instance representing the line.

Parameters

point

The point through which the line passes.

direction

The direction vector of the line.

precision

The precision used for geometric computations, defaulting to DEFAULT_DOUBLE_EQUIVALENCE.

Throws

if the direction vector is zero.